package com.aft.terra.modules.game.controller;

import com.aft.terra.common.interceptor.CallBackLockInterceptor;
import com.aft.terra.modules.game.service.PaymentService;
import com.jfinal.aop.Before;
import com.jfinal.aop.Clear;
import com.jfinal.core.Controller;

public class PersonalController extends Controller{
	/**
	 * 支付回调
	 */
	@Clear
	public synchronized void ccbCallBack() {
		PaymentService.service.callBack(this);
		redirect("/");
	}
	
	@Clear()
	@Before(CallBackLockInterceptor.class)
	public synchronized void usedCallBack() {
		redirect(PaymentService.service.usedCallBack(this));
	}
	@Clear()
	@Before(CallBackLockInterceptor.class)
	public void newCallBack() {
		redirect(PaymentService.service.newCallBack(this));
	}
	
}
